package jsyf.oa.entity.device;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by 92852 on 2018/3/22.
 */
@Entity
@Table(name = "T_DVC_SALESCOST", schema = "oa", catalog = "")
public class SalesCostEntity extends BaseEntity {


    private String repairPrice;

    private String discountPrice;

    private String salesQuotation;

    private String sellingPrice;

    private String accessoriesArrears;

    private String totalCost;

    private String remarksAndWarranty;

    private String remarkSa;

    public String getRepairPrice() {
        return repairPrice;
    }

    public void setRepairPrice(String repairPrice) {
        this.repairPrice = repairPrice;
    }

    public String getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(String discountPrice) {
        this.discountPrice = discountPrice;
    }

    public String getSalesQuotation() {
        return salesQuotation;
    }

    public void setSalesQuotation(String salesQuotation) {
        this.salesQuotation = salesQuotation;
    }

    public String getSellingPrice() {
        return sellingPrice;
    }

    public void setSellingPrice(String sellingPrice) {
        this.sellingPrice = sellingPrice;
    }

    public String getAccessoriesArrears() {
        return accessoriesArrears;
    }

    public void setAccessoriesArrears(String accessoriesArrears) {
        this.accessoriesArrears = accessoriesArrears;
    }

    public String getTotalCost() {
        return totalCost;
    }

    public void setTotalCost(String totalCost) {
        this.totalCost = totalCost;
    }

    public String getRemarksAndWarranty() {
        return remarksAndWarranty;
    }

    public void setRemarksAndWarranty(String remarksAndWarranty) {
        this.remarksAndWarranty = remarksAndWarranty;
    }

    public String getRemarkSa() {
        return remarkSa;
    }

    public void setRemarkSa(String remarkSa) {
        this.remarkSa = remarkSa;
    }

    @Override
    public JSONObject getJSONObject() {

        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("REPAIR_PRICE", this.getRepairPrice());
        obj.put("DISCOUNT_PRICE", this.getDiscountPrice());
        obj.put("SALES_QUOTATION", this.getSalesQuotation());
        obj.put("SELLING_PRICE", this.getSellingPrice());
        obj.put("ACCESSORIES_ARREARS", this.getAccessoriesArrears());
        obj.put("TOTAL_COST", this.getTotalCost());
        obj.put("REMARKS_AND_WARRANTY", this.getRemarksAndWarranty());
        obj.put("REMARKSA", this.getRemarkSa());
        return obj;

    }

    @Override
    public String getTableName() {
        return "T_DVC_SALESCOST";
    }

    @Override
    public JSONObject getJSONColumns() {

        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("REPAIR_PRICE", "repairPrice");
        obj.put("DISCOUNT_PRICE", "discountPrice");
        obj.put("SALES_QUOTATION", "salesQuotation");
        obj.put("SELLING_PRICE", "sellingPrice");
        obj.put("ACCESSORIES_ARREARS", "accessoriesArrears");
        obj.put("TOTAL_COST", "totalCost");
        obj.put("REMARKS_AND_WARRANTY", "remarksAndWarranty");
        obj.put("REMARKSA", "remarkSa");
        return obj;

    }
}
